<?php

namespace app\aiv110\model;

use think\Model;
use think\Db;

/*
 * 秒杀
 */

class Miaosha extends Model {

    const IS_DEL_1 = 1; //在售
    const IS_DEL_2 = 2; //下架

    /*
     * 秒杀对应的项目
     */

    public function Item() {
        return $this->hasOne('Item', 'id', 'item_id')->field('id,item_name,vice_name,service_time,people,content,item_img,item_price');
    }

}
